package com.train.system.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.system.api.TrainStationApi;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TrainStationApiFallback implements TrainStationApi {

    @Override
    public CommonResp getTrainStationByCode(List<String> trainCodes) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }

    @Override
    public CommonResp getTrainStationListByTrainCodes(List<String> trainCodes) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
